from charmicat import Cut
from cmix.parameters import paramdef

cuts = [Cut(name='q_kpi_2sig',
            desc='Select Q off K+pi- within 2 sigma of the Q centroid',
            pos_str='(abs(q_kpi - Q_CENTROID) < 0.0015)',
            condvars=paramdef,
            ),
        Cut(name='m_kpi_d0_2sig',
            desc='Select events with M(K+pi-) within 2 sigma' + \
                ' of the D0 mass',
            pos_str='(abs(m_kpi - D0_MASS) < 2*D0_SIGMA_MC)',
            condvars=paramdef,
            ),
        Cut(name='m_kk_not_d0_4sig',
            desc="Events where the 2-body mass for KK is not " + \
                "within 4 sigma of the D0",
            pos_str="(abs(m_kk - D0_MASS) > 4*D0_SIGMA_MC)",
            condvars=paramdef,
            ),
        Cut(name='m_pipi_not_d0_4sig',
            desc="Events where the 2-body mass for pipi is not " + \
                "within 4 sigma of the D0",
            pos_str="(abs(m_pipi - D0_MASS) > 4*D0_SIGMA_MC)",
            condvars=paramdef,
            ),
        ]

